import { http, jumpExport } from '@/utils/http/axios';

// 获取门店账号管理列表
export function List(params) {
  return http.request({
    url: '/storeMember/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除门店账号管理
export function Delete(params) {
  return http.request({
    url: '/storeMember/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑门店账号管理
export function Edit(params) {
  return http.request({
    url: '/storeMember/edit',
    method: 'POST',
    params,
  });
}

// 操作门店账号管理开关
export function Switch(params) {
  return http.request({
    url: '/storeMember/switch',
    method: 'POST',
    params,
  });
}

// 获取门店账号管理指定详情
export function View(params) {
  return http.request({
    url: '/storeMember/view',
    method: 'GET',
    params,
  });
}

// 导出门店账号管理
export function Export(params) {
  jumpExport('/storeMember/export', params);
}